<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/basedata/basedata/base_defectltem.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/basedata/basedata/base_defectltem.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'defectltem_id',
            footer: "Foots",
            cnName: '不良品项',
            name: 'basedata/base_defectltem',
            url: "/base_defectltem/",
            sortName: "CreateDate"
        });
        const editFormFields = ref({ "defectltemcode": "", "defectltemname": "" });
        const editFormOptions = ref([[{ "title": "不良品项编号", "field": "defectltemcode", "type": "text" },
        { "title": "不良品项名称", "field": "defectltemname", "type": "text" }]]);
        const searchFormFields = ref({ "defectltemcode": "", "defectltemname": "" });
        const searchFormOptions = ref([[{ "title": "不良品项编号", "field": "defectltemcode", "type": "like" }, { "title": "不良品项名称", "field": "defectltemname", "type": "like" }]]);
        const columns = ref([{ field: 'defectltem_id', title: '主键ID', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'defectltemcode', title: '不良品项编号', type: 'string', sort: true, width: 220, align: 'left', sort: true },
        { field: 'defectltemname', title: '不良品项名称', type: 'string', link: true, sort: true, width: 220, align: 'left' },
        { field: 'Creator', title: '创建人', type: 'string', width: 100, align: 'left' },
        { field: 'CreateDate', title: '创建时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'Modifier', title: '更新人', type: 'string', width: 100, align: 'left' },
        { field: 'ModifyDate', title: '更新时间', type: 'datetime', width: 150, align: 'left', sort: true }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
